package request

type RoleCreate struct {
	Name      string `form:"name" json:"name" binding:"required"`
	Alias     string `form:"alias" json:"alias" binding:"required"`
	Desc      string `form:"desc" json:"desc"`
	CreatedBy uint   `form:"created_by" json:"created_by"`
	UpdatedBy uint   `form:"updated_by" json:"updated_by"`
}

type RoleUpdate struct {
	Name      string `form:"name" json:"name" binding:"required"`
	Alias     string `form:"alias" json:"alias" binding:"required"`
	Desc      string `form:"desc" json:"desc"`
	Status    int    `form:"status" json:"status"`
	UpdatedBy uint   `form:"updated_by" json:"updated_by"`
}

type RolePagination struct {
	Pagination
	Keyword string `form:"keyword" json:"keyword"`
}

type AssignMenus struct {
	Checked     []uint `form:"checked" json:"checked"`
	HalfChecked []uint `form:"halfChecked" json:"halfChecked"`
}

type AssignShops struct {
	ShopIds []uint `form:"shopIds" json:"shopIds"`
}
